package com.health.healthproject.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 健康日志数据传输对象
 */
@Data
public class HealthLogDTO {
    // 健康日志基本信息
    private Long id;
    private Long userId;
    private BigDecimal height;
    private BigDecimal weight;
    private Integer bloodPressureSystolic;
    private Integer bloodPressureDiastolic;
    private BigDecimal bloodSugar;
    private String otherDiseases;
    private String attachments;
    private String remark;
    private LocalDate checkDate;
    private Long createUser;
    private Long updateUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    // 关联的用户信息
    private String userName;        // 用户姓名
    private String userPhone;      // 用户手机号
    private String emergencyContact; // 紧急联系人
    private String emergencyPhone;  // 紧急联系人电话
}